package com.flymobi.mshop.activity;

import com.flymobi.mshop.R;

import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class MyCenter extends Common {
	
	private TextView title;
	private Button login,reg;
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
//		
//		if(isLogin()){
			setContentView(R.layout.mycenter);
			title = (TextView) findViewById(R.id.titleText);
			title.setText("个人中心");
//		}else{
//			setContentView(R.layout.login);
//			title = (TextView) findViewById(R.id.titleText);
//			title.setText("登录");
//			iniView();
//			setListener();
//		//	forward(Login.class);
//
//		}
		
	}
	public void iniView() {
		title = (TextView) findViewById(R.id.titleText);
		login = (Button) findViewById(R.id.login_comfirm_button);
		reg = (Button) findViewById(R.id.register_link);
	}

	public void setListener() {
		login.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {

			}
		});

		reg.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				forward(Reg.class);
			}
		});
	}
	
	
	
	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public boolean onDown(MotionEvent e) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,
			float velocityY) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public void onLongPress(MotionEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX,
			float distanceY) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public void onShowPress(MotionEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public boolean onSingleTapUp(MotionEvent e) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean onTouch(View v, MotionEvent event) {
		// TODO Auto-generated method stub
		return false;
	}
}
